﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using X23.Util.DateTimeUtil;

namespace X23.Model
{
    /// <summary>
    /// 基本实体 主键int（审计、删除、备注）
    /// </summary>
    public class BaseAuditedEntity : BaseEntity<int>, IAuditedEntity, IRemarkEntity, IDeleteEntity
    {
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; } = false;
        /// <summary>
        /// 创建者
        /// </summary>
        public string CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTimeUtil.DateTimeChineseNow;
        /// <summary>
        /// 修改者
        /// </summary>
        public string UpdateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTimeUtil.DateTimeChineseNow;
        /// <summary>	
        /// 备注，描述		
        /// </summary>	
        public string Remark { get; set; }
    }
}
